package com.chinasofti.generic;

public class GenericDemo {
    public static void main(String[] args) {
        Generic<String> gl = new Generic<>();
        gl.setT("张毅");
        System.out.println(gl.getT());


        Generic<Integer> gl2 = new Generic<>();
        gl2.setT(2);
        System.out.println(gl2.getT());
    }
}
